package model.dynamic;

import com.github.crab2died.annotation.ExcelField;

import model.AbstractModel;
import model.statical.Model;

public class DyModel extends AbstractModel
{
	// 等级提升比例
	public  final double[] promoteRates = DyDepartment.promoteRates;
	// 等级最低服役年限
	public static final int[] rankLeastTimes = DyDepartment.rankLeastTimes;
	// 等级最高服役年限
	public static final int[] rankLimitTimes = DyDepartment.rankLimitTimes;
	// 等级最高服役年龄
	public static final int[] rankLimitAges = DyDepartment.rankLimitAges;

	public DyModel()
	{
		number = 1;
	}

	public DyModel(Model model)
	{
		this.aName = model.getaName();
		this.bName = model.getbName();
		this.cName = model.getcName();
		this.dName = model.getdName();
		this.quarter = model.getQuarter();
		this.rankString = model.getRankString();
		this.profession = model.getProfession();
		this.rank = model.getRank();
		dyNumber = number = model.getImportNumber();
		this.mainProfession = model.getMainProfession();
	}

	// 辅助变量
	protected int dyNumber = 1;
	// 等级服役时间
	@ExcelField(title = "等级服役时间", order = 8)
	protected int rankServiceTime;
	// 服役年龄
	@ExcelField(title = "年龄", order = 9)
	protected int serviceAge;

	public int getRankServiceTime()
	{
		return rankServiceTime;
	}

	public void setRankServiceTime(int rankServiceTime)
	{
		this.rankServiceTime = rankServiceTime;
	}

	public int getServiceAge()
	{
		return serviceAge;
	}

	public void setServiceAge(int serviceAge)
	{
		this.serviceAge = serviceAge;
	}
}
